<template>
  <div class="project-banner">
    <div class="top">
      <img :src="bannerText.app_list_pic_url" />
      <p class="title">
        <span>{{ bannerText.name }}</span>
      </p>
    </div>
    <div class="main">
      <p>{{ bannerText.simple_desc }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    bannerText: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>

<style lang="scss" scoped>
.project-banner {
  background-color: #fff;
  margin-top: 44px;
  .top {
    position: relative;
    height: 145px;
    img {
      width: 100%;
      height: 100%;
    }
    .title {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      color: #fff;
      font-weight: bolder;
      font-size: 22px;
      padding: 2px;
      border-bottom: 3px solid #fff;
    }
  }
  .main {
    font-size: 16px;
    padding: 10px;
    text-align: center;
    p {
      color: #666666;
      padding: 10px 0;
    }
  }
}
</style>